import React, {Component} from 'react'
import {RefreshWrapper} from "./styled";
import {connect} from 'react-redux'
import {Button} from 'antd'
import {FormattedMessage} from 'react-intl'
class Refresh extends Component {
    render() {
        const {refresh} = this.props
        return (
            <RefreshWrapper>
                    <Button type='primary' onClick={refresh}>
                        <FormattedMessage id='refreshBtn'/>
                    </Button>
            </RefreshWrapper>
        )
    }
    componentWillMount(){
    }
}
const mapState = (state)=>({
    // location: state.getIn(['mainTab','location']),
})
const mapDispatch = (dispatch)=>({
    refresh(){
        console.log(999)
    }

})

export default connect(mapState, mapDispatch)(Refresh)
